from selenium import webdriver
from time import sleep

from selenium.webdriver.common.by import By

driver = webdriver.Firefox()
driver.get('https://www.baidu.com/')
ele = driver.find_element(By.ID,'kw')
print(type(ele))
eles = driver.find_elements(By.ID,'kw')
print(type(eles))
driver.quit()